Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react): update to support react 17 #1563

Closed
wants to merge 15 commits into from
Closed

feat(react): update to support react 17 #1563

wants to merge 15 commits into from

Conversation

scurker
Copy link
Member

@scurker scurker commented Jul 3, 2024

closes #1473

The Modal component works fine with the Cauldron 17 upgrade.

modal-component.mov

TODO:

@scurker scurker changed the title feat(react): update to officially support react 17 feat(react): update to support react 17 Jul 3, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1563.d15792l1n26ww3.amplifyapp.com

@@ -515,6 +515,9 @@ test('should prevent default with enter keypress and open listbox', () => {
// rtl doesn't let us mock preventDefault
// see: https://github.com/testing-library/react-testing-library/issues/572
event.preventDefault = preventDefault;
if (type === 'focus') {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here I suspect are related to testing-library/user-event#592, but we're not using user-event but are calling fireEvent due to specific limitations with testing library.

@anastasialanz
Copy link
Contributor

Also closes #1473

@scurker
Copy link
Member Author

scurker commented Jul 9, 2024

Also closes #1473

AHHHHHHH auto completion got me and I didn't check the ticket that this one was supposed to close 😅

@anastasialanz anastasialanz self-assigned this Sep 16, 2024
@anastasialanz
Copy link
Contributor

Closing this for #1680 since I'm taking over the work and then @scurker can be a reviewer of the PR too.

@anastasialanz anastasialanz deleted the react-17 branch September 17, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to React 17
2 participants